
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>qilu-validate · 启路框架-使用手册</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-plus/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-tbfed-pagefooter/footer.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-insert-logo/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-back-to-top-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-toggle-chapters/toggle.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-code/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-lightbox/css/lightbox.min.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-emphasize/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-prism/prism.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-flexible-alerts/style.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-page-toc-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-pageview-count/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-donate/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    


    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="../state/state-course.html" />
    
    
    <link rel="prev" href="httpService-readme.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    整体介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../ready/ready.html">
            
                <a href="../ready/ready.html">
            
                    
                    技术准备
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../ready/ide.html">
            
                <a href="../ready/ide.html">
            
                    
                    eclipse
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../ready/build.html">
            
                <a href="../ready/build.html">
            
                    
                    本地构建
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../ready/nexus.html">
            
                <a href="../ready/nexus.html">
            
                    
                    私服构建
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../ready/run.html">
            
                <a href="../ready/run.html">
            
                    
                    运行调试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="../ready/specification.html">
            
                <a href="../ready/specification.html">
            
                    
                    结构和分包
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="baseReadme.html">
            
                <a href="baseReadme.html">
            
                    
                    基础包介绍
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="qiluTask-readme.html">
            
                <a href="qiluTask-readme.html">
            
                    
                    qilu-task
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="cache-readme.html">
            
                <a href="cache-readme.html">
            
                    
                    qilucache
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="qiluMybatis-readme.html">
            
                <a href="qiluMybatis-readme.html">
            
                    
                    qilu-mybatis
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="logTrace-readme.html">
            
                <a href="logTrace-readme.html">
            
                    
                    qilu-logTrace
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="qilu-export-readme.html">
            
                <a href="qilu-export-readme.html">
            
                    
                    qilu-export
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6" data-path="httpService-readme.html">
            
                <a href="httpService-readme.html">
            
                    
                    qilu-http-service
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.3.7" data-path="validateReadme.html">
            
                <a href="validateReadme.html">
            
                    
                    qilu-validate
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../state/state-course.html">
            
                <a href="../state/state-course.html">
            
                    
                    交易一致的由来
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../state/state-settle.html">
            
                <a href="../state/state-settle.html">
            
                    
                    qilu-state使用说明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../state/state-demo.html">
            
                <a href="../state/state-demo.html">
            
                    
                    购买订单的处理示例
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../backSample/backSampleReadme.html">
            
                <a href="../backSample/backSampleReadme.html">
            
                    
                    后台代码模板
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../backSample/security.html">
            
                <a href="../backSample/security.html">
            
                    
                    安全介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../backSample/deploy.html">
            
                <a href="../backSample/deploy.html">
            
                    
                    部署集成
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../backSample/config.html">
            
                <a href="../backSample/config.html">
            
                    
                    spring配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="../backSample/sso.html">
            
                <a href="../backSample/sso.html">
            
                    
                    SSO集成
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5" data-path="../backSample/example.html">
            
                <a href="../backSample/example.html">
            
                    
                    常见代码示例
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../test/readme.html">
            
                <a href="../test/readme.html">
            
                    
                    关于测试
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../test/unitTest.html">
            
                <a href="../test/unitTest.html">
            
                    
                    单元测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../test/function.html">
            
                <a href="../test/function.html">
            
                    
                    功能测试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../test/noFunction.html">
            
                <a href="../test/noFunction.html">
            
                    
                    非功能测试
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../video/test.html">
            
                <a href="../video/test.html">
            
                    
                    视频
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../video/build.html">
            
                <a href="../video/build.html">
            
                    
                    项目构建
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../video/state.html">
            
                <a href="../video/state.html">
            
                    
                    交易一致
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >qilu-validate</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div class="search-plus" id="book-search-results">
    <div class="search-noresults">
    
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x9A8C;&#x8BC1;&#x5668;validate">&#x9A8C;&#x8BC1;&#x5668;(validate)</h1>
<p>&#x5F00;&#x6E90;&#x9886;&#x57DF;&#x5DF2;&#x7ECF;&#x5B58;&#x5728;hibernate.validation,&#x6211;&#x5728;&#x4F7F;&#x7528;&#x7684;&#x65F6;&#x5019;,&#x603B;&#x611F;&#x89C9;&#x662F;&#x4E00;&#x4E2A;&#x9E21;&#x808B;,&#x7528;&#x4ED6;&#x6709;&#x5F88;&#x591A;&#x4E0D;&#x723D;,&#x4E0D;&#x7528;,&#x53C8;&#x6CA1;&#x6709;&#x4E00;&#x4E2A;&#x5F88;&#x597D;&#x7684;&#x66FF;&#x4EE3;&#x65B9;&#x6848;.&#x6240;&#x4EE5;&#x8FD9;&#x8FB9;&#x5C31;&#x81EA;&#x5DF1;&#x5199;&#x4E86;&#x4E00;&#x4E2A;.</p>
<p>&#x4E3B;&#x8981;&#x7684;&#x4E0D;&#x723D;&#x7684;&#x5730;&#x65B9;&#x5982;&#x4E0B;</p>
<ul>
<li>hibernate-validation&#x6BD4;&#x8F83;&#x5570;&#x55E6;&#x800C;&#x4E14;&#x504F;low,&#x6BD4;&#x5982;&#x8BF4;@Post&#x548C;@Future,@Email</li>
<li>hibernate-validation&#x4F9D;&#x8D56;&#x4E86;&#x592A;&#x591A;&#x7684;&#x6846;&#x67B6;,&#x66F4;&#x65B0;&#x6BD4;&#x8F83;&#x5C11;,&#x6BD4;&#x5982;struts </li>
</ul>
<h2 id="&#x4EE3;&#x7801;&#x96C6;&#x6210;">&#x4EE3;&#x7801;&#x96C6;&#x6210;</h2>
<h3 id="validation-api&#x7684;maven&#x4F9D;&#x8D56;">validation-api&#x7684;maven&#x4F9D;&#x8D56;</h3>
<pre class="language-"><code class="lang-xml"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>dependency</span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>groupId</span><span class="token punctuation">&gt;</span></span>com.9istock.base<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>groupId</span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>artifactId</span><span class="token punctuation">&gt;</span></span>validation-api<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>artifactId</span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>version</span><span class="token punctuation">&gt;</span></span>1.0.0<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>version</span><span class="token punctuation">&gt;</span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>dependency</span><span class="token punctuation">&gt;</span></span>
</code></pre>
<h3 id="validation-core&#x7684;maven&#x4F9D;&#x8D56;">validation-core&#x7684;maven&#x4F9D;&#x8D56;</h3>
<pre class="language-"><code class="lang-xml"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>dependency</span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>groupId</span><span class="token punctuation">&gt;</span></span>com.9istock.base<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>groupId</span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>artifactId</span><span class="token punctuation">&gt;</span></span>validation-core<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>artifactId</span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>version</span><span class="token punctuation">&gt;</span></span>1.0.0<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>version</span><span class="token punctuation">&gt;</span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>dependency</span><span class="token punctuation">&gt;</span></span>
</code></pre>
<h3 id="&#x4F7F;&#x7528;">&#x4F7F;&#x7528;</h3>
<h4 id="spring&#x914D;&#x7F6E;">spring&#x914D;&#x7F6E;</h4>
<p>&#x5BF9;&#x4E8E;spring&#x7684;&#x914D;&#x7F6E;&#x6765;&#x8BF4;,&#x53EF;&#x4EE5;&#x914D;&#x7F6E;,&#x4E5F;&#x53EF;&#x4EE5;&#x4E0D;&#x914D;&#x7F6E;</p>
<p>&#x5982;&#x679C;&#x51FA;&#x73B0;&#x81EA;&#x5B9A;&#x4E49;&#x6807;&#x7B7E;&#x7684;&#x60C5;&#x51B5;,&#x4E00;&#x5B9A;&#x8981;&#x4F7F;&#x7528;spring&#x8FDB;&#x884C;&#x521D;&#x59CB;&#x5316;</p>
<pre class="language-"><code class="lang-xml"><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>bean</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">&quot;</span>com.istock.base.validation.Validator<span class="token punctuation">&quot;</span></span> <span class="token attr-name">factory-method</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">&quot;</span>getInstance<span class="token punctuation">&quot;</span></span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>property</span> <span class="token attr-name">name</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">&quot;</span>customHandler<span class="token punctuation">&quot;</span></span><span class="token punctuation">&gt;</span></span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>set</span><span class="token punctuation">&gt;</span></span>
            <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>bean</span> <span class="token attr-name">class</span><span class="token attr-value"><span class="token punctuation">=</span><span class="token punctuation">&quot;</span>com.istock.base.validation.DBCheckHander<span class="token punctuation">&quot;</span></span><span class="token punctuation">&gt;</span></span><span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>bean</span><span class="token punctuation">&gt;</span></span>
        <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>set</span><span class="token punctuation">&gt;</span></span>
    <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>property</span><span class="token punctuation">&gt;</span></span>
<span class="token tag"><span class="token tag"><span class="token punctuation">&lt;/</span>bean</span><span class="token punctuation">&gt;</span></span>
</code></pre>
<h4 id="java&#x8C03;&#x7528;">java&#x8C03;&#x7528;</h4>
<pre class="language-"><code class="lang-java"><span class="token class-name">MaxModel</span> model1 <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name">MaxModel</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token class-name">Map</span><span class="token generics"><span class="token punctuation">&lt;</span><span class="token class-name">String</span><span class="token punctuation">,</span><span class="token class-name">List</span><span class="token punctuation">&lt;</span><span class="token class-name">ValidResult</span><span class="token punctuation">&gt;</span><span class="token punctuation">&gt;</span></span> result <span class="token operator">=</span> <span class="token class-name">Validator</span><span class="token punctuation">.</span><span class="token function">getInstance</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">validate</span><span class="token punctuation">(</span>model1<span class="token punctuation">,</span> <span class="token class-name">Validator</span><span class="token punctuation">.</span>VALID_TYPE_ALL<span class="token punctuation">)</span><span class="token punctuation">;</span>
</code></pre>
<p>Validator.VALID_TYPE_ALL:&#x68C0;&#x67E5;&#x7C7B;&#x4E2D;&#x6240;&#x6709;&#x7684;&#x5C5E;&#x6027;,&#x5168;&#x90E8;&#x62A5;&#x51FA;&#x6765;
Validator.VALID_TYPE_SINGLE:&#x68C0;&#x67E5;&#x7C7B;&#x4E2D;&#x5C5E;&#x6027;,&#x53EA;&#x8981;&#x6709;&#x4E00;&#x4E2A;&#x62A5;&#x8B66;&#x5C31;&#x8FD4;&#x56DE;</p>
<h3 id="&#x6CE8;&#x89E3;&#x8BF4;&#x660E;">&#x6CE8;&#x89E3;&#x8BF4;&#x660E;</h3>
<p>validation&#x4E00;&#x5171;&#x6709;&#x5982;&#x4E0B;&#x6CE8;&#x89E3;</p>
<h4 id="max">@Max</h4>
<p>&#x6700;&#x5927;&#x9A8C;&#x8BC1;&#x6CE8;&#x89E3;,&#x5F53;&#x6CE8;&#x89E3;field&#x7684;&#x7C7B;&#x578B;&#x4E3A;&#x6570;&#x5B57;/&#x65E5;&#x671F;,&#x9A8C;&#x8BC1;&#x503C;&#x5927;&#x5C0F;,&#x5F53;&#x6CE8;&#x89E3;field&#x7684;&#x7C7B;&#x578B;&#x4E3A;string,&#x9A8C;&#x8BC1;&#x957F;&#x5EA6;</p>
<table>
<thead>
<tr>
<th>&#x5C5E;&#x6027;&#x540D;</th>
<th>&#x63CF;&#x8FF0;</th>
</tr>
</thead>
<tbody>
<tr>
<td>value</td>
<td>&#x6700;&#x5927;&#x503C;&#x5224;&#x65AD;&#x7684;&#x4F9D;&#x636E;&#x503C;,&#x4F1A;&#x4F7F;&#x7528;springEL&#x8FDB;&#x884C;&#x6267;&#x884C;</td>
</tr>
<tr>
<td>message</td>
<td>&#x5982;&#x679C;&#x5224;&#x65AD;&#x9519;&#x8BEF;,&#x5C55;&#x793A;&#x7684;&#x6D88;&#x606F;</td>
</tr>
<tr>
<td>messageProperty</td>
<td>&#x4F7F;&#x7528;&#x56FD;&#x9645;&#x5316;&#x914D;&#x7F6E;&#x7684;property</td>
</tr>
</tbody>
</table>
<p>@Max&#x6CE8;&#x89E3;&#x7684;&#x4F7F;&#x7528;&#x793A;&#x4F8B;</p>
<pre class="language-"><code class="lang-java"><span class="token comment">//&#x9A8C;&#x8BC1;aaa&#x7684;&#x957F;&#x5EA6;&#x4E0D;&#x80FD;&#x8D85;&#x8FC7;3</span>
<span class="token annotation punctuation">@Max</span><span class="token punctuation">(</span>value <span class="token operator">=</span> <span class="token string">&quot;3&quot;</span> <span class="token punctuation">,</span>message<span class="token operator">=</span><span class="token string">&quot;${fieldName}&#x7684;&#x957F;&#x5EA6;&#x4E0D;&#x80FD;&#x8D85;&#x8FC7;${value}&quot;</span><span class="token punctuation">)</span>
<span class="token keyword">public</span> <span class="token class-name">String</span> aaa <span class="token operator">=</span> <span class="token string">&quot;a&quot;</span><span class="token punctuation">;</span>

<span class="token comment">//&#x4ECE;&#x5C5E;&#x6027;bbbLength&#x4E2D;&#x83B7;&#x5F97;&#x6821;&#x9A8C;&#x503C;,&#x5C5E;&#x6027;bbb&#x7684;&#x957F;&#x5EA6;&#x4E0D;&#x80FD;&#x8D85;&#x8FC7;12</span>
<span class="token keyword">public</span> <span class="token keyword">int</span> bbbLength <span class="token operator">=</span> <span class="token number">12</span><span class="token punctuation">;</span>
<span class="token annotation punctuation">@Max</span><span class="token punctuation">(</span>value <span class="token operator">=</span> <span class="token string">&quot;bbbLength&quot;</span><span class="token punctuation">)</span>
<span class="token keyword">public</span> <span class="token class-name">String</span> bbb <span class="token operator">=</span> <span class="token string">&quot;1234&quot;</span><span class="token punctuation">;</span>

<span class="token comment">//&#x5C5E;&#x6027;age&#x7684;&#x503C;&#x4E0D;&#x80FD;&#x5927;&#x4E8E;11</span>
<span class="token annotation punctuation">@Max</span><span class="token punctuation">(</span>value <span class="token operator">=</span> <span class="token string">&quot;11&quot;</span><span class="token punctuation">)</span>
<span class="token keyword">public</span> <span class="token class-name">Integer</span> age <span class="token operator">=</span> <span class="token number">1</span><span class="token punctuation">;</span>

<span class="token comment">//&#x5C5E;&#x6027;age2&#x7684;&#x503C;&#x4E0D;&#x80FD;&#x5927;&#x4E8E;&#x5C5E;&#x6027;bbbLength&#x7684;&#x503C;12</span>
<span class="token annotation punctuation">@Max</span><span class="token punctuation">(</span>value <span class="token operator">=</span> <span class="token string">&quot;bbbLength&quot;</span><span class="token punctuation">)</span>
<span class="token keyword">public</span> <span class="token class-name">Integer</span> age2 <span class="token operator">=</span> <span class="token number">11</span><span class="token punctuation">;</span>

<span class="token comment">//&#x5C5E;&#x6027;dateField&#x7684;&#x65E5;&#x671F;&#x4E0D;&#x80FD;&#x665A;&#x4E8E;3017-11-11</span>
<span class="token comment">//&#x65E5;&#x671F;&#x652F;&#x6301;&#x56DB;&#x79CD;&#x683C;&#x5F0F;&quot;yyyyMMdd&quot;,&quot;yyyyMMddHHmmss&quot; , &quot;yyyy-MM-dd&quot;,&quot;yyyy-MM-dd HH:mm:ss&quot;</span>
<span class="token annotation punctuation">@Max</span><span class="token punctuation">(</span>value <span class="token operator">=</span> <span class="token string">&quot;30171111&quot;</span><span class="token punctuation">)</span>
<span class="token keyword">public</span> <span class="token class-name">Date</span> dateFiled <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name">Date</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>

<span class="token comment">//&#x5C5E;&#x6027;dateField&#x7684;&#x65E5;&#x671F;&#x4E0D;&#x80FD;&#x665A;&#x4E8E;dateFiled-1day</span>
<span class="token annotation punctuation">@Max</span><span class="token punctuation">(</span>value <span class="token operator">=</span> <span class="token string">&quot;T(org.apache.commons.lang3.time.DateUtils).addDays(dateFiled, -1)&quot;</span><span class="token punctuation">)</span>
<span class="token keyword">public</span> <span class="token class-name">Date</span> targetDate <span class="token operator">=</span> <span class="token class-name">DateUtils</span><span class="token punctuation">.</span><span class="token function">addDays</span><span class="token punctuation">(</span><span class="token keyword">new</span> <span class="token class-name">Date</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">,</span> <span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
</code></pre>
<h4 id="min">@Min</h4>
<p>&#x6700;&#x5C0F;&#x9A8C;&#x8BC1;&#x6CE8;&#x89E3;,&#x5F53;&#x6CE8;&#x89E3;field&#x7684;&#x7C7B;&#x578B;&#x4E3A;&#x6570;&#x5B57;/&#x65E5;&#x671F;,&#x9A8C;&#x8BC1;&#x503C;&#x5927;&#x5C0F;,&#x5F53;&#x6CE8;&#x89E3;field&#x7684;&#x7C7B;&#x578B;&#x4E3A;string,&#x9A8C;&#x8BC1;&#x957F;&#x5EA6;</p>
<table>
<thead>
<tr>
<th>&#x5C5E;&#x6027;&#x540D;</th>
<th>&#x63CF;&#x8FF0;</th>
</tr>
</thead>
<tbody>
<tr>
<td>value</td>
<td>&#x6700;&#x5C0F;&#x503C;&#x5224;&#x65AD;&#x7684;&#x4F9D;&#x636E;&#x503C;,&#x4F1A;&#x4F7F;&#x7528;springEL&#x8FDB;&#x884C;&#x6267;&#x884C;</td>
</tr>
<tr>
<td>message</td>
<td>&#x5982;&#x679C;&#x5224;&#x65AD;&#x9519;&#x8BEF;,&#x5C55;&#x793A;&#x7684;&#x6D88;&#x606F;</td>
</tr>
<tr>
<td>messageProperty</td>
<td>&#x4F7F;&#x7528;&#x56FD;&#x9645;&#x5316;&#x914D;&#x7F6E;&#x7684;property</td>
</tr>
</tbody>
</table>
<p>@Min&#x6CE8;&#x89E3;&#x7684;&#x4F7F;&#x7528;&#x793A;&#x4F8B;</p>
<pre class="language-"><code class="lang-java"><span class="token comment">//&#x9A8C;&#x8BC1;aaa&#x7684;&#x957F;&#x5EA6;&#x4E0D;&#x80FD;&#x5C0F;&#x4E8E;3</span>
<span class="token annotation punctuation">@Min</span><span class="token punctuation">(</span>value <span class="token operator">=</span> <span class="token string">&quot;3&quot;</span> <span class="token punctuation">,</span>message<span class="token operator">=</span><span class="token string">&quot;${fieldName}&#x7684;&#x957F;&#x5EA6;&#x4E0D;&#x80FD;&#x8D85;&#x8FC7;${value}&quot;</span><span class="token punctuation">)</span>
<span class="token keyword">public</span> <span class="token class-name">String</span> aaa <span class="token operator">=</span> <span class="token string">&quot;a&quot;</span><span class="token punctuation">;</span>

<span class="token comment">//&#x4ECE;&#x5C5E;&#x6027;bbbLength&#x4E2D;&#x83B7;&#x5F97;&#x6821;&#x9A8C;&#x503C;,&#x5C5E;&#x6027;bbb&#x7684;&#x957F;&#x5EA6;&#x4E0D;&#x80FD;&#x5C0F;&#x4E8E;12</span>
<span class="token keyword">public</span> <span class="token keyword">int</span> bbbLength <span class="token operator">=</span> <span class="token number">12</span><span class="token punctuation">;</span>
<span class="token annotation punctuation">@Min</span><span class="token punctuation">(</span>value <span class="token operator">=</span> <span class="token string">&quot;bbbLength&quot;</span><span class="token punctuation">)</span>
<span class="token keyword">public</span> <span class="token class-name">String</span> bbb <span class="token operator">=</span> <span class="token string">&quot;1234&quot;</span><span class="token punctuation">;</span>

<span class="token comment">//&#x5C5E;&#x6027;age&#x7684;&#x503C;&#x4E0D;&#x80FD;&#x5C0F;&#x4E8E;12</span>
<span class="token annotation punctuation">@Min</span><span class="token punctuation">(</span>value <span class="token operator">=</span> <span class="token string">&quot;11&quot;</span><span class="token punctuation">)</span>
<span class="token keyword">public</span> <span class="token class-name">Integer</span> age <span class="token operator">=</span> <span class="token number">1</span><span class="token punctuation">;</span>

<span class="token comment">//&#x5C5E;&#x6027;age2&#x7684;&#x503C;&#x4E0D;&#x80FD;&#x5C0F;&#x4E8E;&#x5C5E;&#x6027;bbbLength&#x7684;&#x503C;12</span>
<span class="token annotation punctuation">@Min</span><span class="token punctuation">(</span>value <span class="token operator">=</span> <span class="token string">&quot;bbbLength&quot;</span><span class="token punctuation">)</span>
<span class="token keyword">public</span> <span class="token class-name">Integer</span> age2 <span class="token operator">=</span> <span class="token number">11</span><span class="token punctuation">;</span>

<span class="token comment">//&#x5C5E;&#x6027;dateField&#x7684;&#x65E5;&#x671F;&#x4E0D;&#x80FD;&#x65E9;&#x4E8E;3017-11-11</span>
<span class="token comment">//&#x65E5;&#x671F;&#x652F;&#x6301;&#x56DB;&#x79CD;&#x683C;&#x5F0F;&quot;yyyyMMdd&quot;,&quot;yyyyMMddHHmmss&quot; , &quot;yyyy-MM-dd&quot;,&quot;yyyy-MM-dd HH:mm:ss&quot;</span>
<span class="token annotation punctuation">@Min</span><span class="token punctuation">(</span>value <span class="token operator">=</span> <span class="token string">&quot;30171111&quot;</span><span class="token punctuation">)</span>
<span class="token keyword">public</span> <span class="token class-name">Date</span> dateFiled <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name">Date</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>

<span class="token comment">//&#x5C5E;&#x6027;dateField&#x7684;&#x65E5;&#x671F;&#x4E0D;&#x80FD;&#x65E9;&#x4E8E;dateFiled-1day</span>
<span class="token annotation punctuation">@Min</span><span class="token punctuation">(</span>value <span class="token operator">=</span> <span class="token string">&quot;T(org.apache.commons.lang3.time.DateUtils).addDays(dateFiled, -1)&quot;</span><span class="token punctuation">)</span>
<span class="token keyword">public</span> <span class="token class-name">Date</span> targetDate <span class="token operator">=</span> <span class="token class-name">DateUtils</span><span class="token punctuation">.</span><span class="token function">addDays</span><span class="token punctuation">(</span><span class="token keyword">new</span> <span class="token class-name">Date</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">,</span> <span class="token operator">-</span><span class="token number">1</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
</code></pre>
<h4 id="notnull">@NotNull</h4>
<p>&#x975E;&#x7A7A;&#x68C0;&#x67E5;&#x6CE8;&#x89E3;,&#x6CE8;&#x89E3;&#x6240;&#x5728;&#x7684;field&#x4E3A;null&#x65F6;,&#x4F1A;&#x8FDB;&#x884C;&#x62A5;&#x8B66;</p>
<table>
<thead>
<tr>
<th>&#x5C5E;&#x6027;&#x540D;</th>
<th>&#x63CF;&#x8FF0;</th>
</tr>
</thead>
<tbody>
<tr>
<td>message</td>
<td>&#x5982;&#x679C;&#x5224;&#x65AD;&#x9519;&#x8BEF;,&#x5C55;&#x793A;&#x7684;&#x6D88;&#x606F;</td>
</tr>
<tr>
<td>messageProperty</td>
<td>&#x4F7F;&#x7528;&#x56FD;&#x9645;&#x5316;&#x914D;&#x7F6E;&#x7684;property</td>
</tr>
</tbody>
</table>
<h4 id="patterncheck">@PatternCheck</h4>
<p>&#x6B63;&#x5219;&#x9A8C;&#x8BC1;,&#x6CE8;&#x89E3;&#x6240;&#x5728;&#x7684;field&#x5FC5;&#x987B;&#x4E3A;string&#x7C7B;&#x578B;,&#x8FDB;&#x884C;&#x6B63;&#x5219;&#x8868;&#x8FBE;&#x5F0F;&#x68C0;&#x67E5;</p>
<table>
<thead>
<tr>
<th>&#x5C5E;&#x6027;&#x540D;</th>
<th>&#x63CF;&#x8FF0;</th>
</tr>
</thead>
<tbody>
<tr>
<td>value</td>
<td>&#x6B63;&#x5219;&#x8868;&#x8FBE;&#x5F0F;</td>
</tr>
<tr>
<td>message</td>
<td>&#x5982;&#x679C;&#x5224;&#x65AD;&#x9519;&#x8BEF;,&#x5C55;&#x793A;&#x7684;&#x6D88;&#x606F;</td>
</tr>
<tr>
<td>messageProperty</td>
<td>&#x4F7F;&#x7528;&#x56FD;&#x9645;&#x5316;&#x914D;&#x7F6E;&#x7684;property</td>
</tr>
<tr>
<td>match</td>
<td>&#x544A;&#x8B66;&#x6A21;&#x5F0F;,&#x53EF;&#x9009;&#x503C; true,&#x5339;&#x914D;&#x6B63;&#x5219;&#x8868;&#x8FBE;&#x5F0F;&#x62A5;&#x8B66;,false,&#x4E0D;&#x5339;&#x914D;&#x6B63;&#x5219;&#x8868;&#x8FBE;&#x5F0F;&#x62A5;&#x8B66;</td>
</tr>
</tbody>
</table>
<p>@PatternCheck&#x6CE8;&#x89E3;&#x7684;&#x4F7F;&#x7528;&#x793A;&#x4F8B;</p>
<pre class="language-"><code class="lang-java"><span class="token comment">//&#x90AE;&#x7BB1;&#x9A8C;&#x8BC1;,&#x9ED8;&#x8BA4;&#x4E0D;&#x5339;&#x914D;&#x544A;&#x8B66;,&#x5982;&#x679C;&#x6CE8;&#x89E3;&#x5B57;&#x6BB5;&#x7684;&#x503C;&#x4E0D;&#x662F;&#x90AE;&#x7BB1;&#x683C;&#x5F0F;,&#x4F1A;&#x544A;&#x8B66;</span>
<span class="token annotation punctuation">@PatternCheck</span><span class="token punctuation">(</span>value<span class="token operator">=</span><span class="token string">&quot;(\\p{Alpha}|[.,-_=+])+@(\\p{Alpha})+\\.(\\p{Alpha})+&quot;</span><span class="token punctuation">)</span>
<span class="token keyword">public</span> <span class="token class-name">String</span> mail <span class="token operator">=</span> <span class="token string">&quot;asdfv.asd@asdf.com&quot;</span><span class="token punctuation">;</span>

<span class="token comment">//&#x65E5;&#x671F;&#x9A8C;&#x8BC1;,&#x9ED8;&#x8BA4;&#x4E0D;&#x5339;&#x914D;&#x544A;&#x8B66;,&#x5982;&#x679C;&#x6CE8;&#x89E3;&#x5B57;&#x6BB5;&#x7684;&#x503C;&#x4E0D;&#x662F;&#x89C4;&#x5B9A;&#x7684;&#x65E5;&#x671F;,&#x4F1A;&#x544A;&#x8B66;</span>
<span class="token annotation punctuation">@PatternCheck</span><span class="token punctuation">(</span>value<span class="token operator">=</span><span class="token string">&quot;(?!0000)[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|1[0-9]|2[0-8])&quot;</span><span class="token punctuation">)</span>
<span class="token keyword">public</span> <span class="token class-name">String</span> date <span class="token operator">=</span> <span class="token string">&quot;1992-10-10&quot;</span><span class="token punctuation">;</span>

<span class="token comment">//&#x7EAF;&#x6570;&#x5B57;&#x9A8C;&#x8BC1;,&#x4E0D;&#x5339;&#x914D;&#x544A;&#x8B66;,&#x5982;&#x679C;&#x6CE8;&#x89E3;&#x5B57;&#x6BB5;&#x7684;&#x503C;&#x4E0D;&#x662F;&#x6570;&#x5B57;,&#x4F1A;&#x544A;&#x8B66;</span>
<span class="token annotation punctuation">@PatternCheck</span><span class="token punctuation">(</span>value<span class="token operator">=</span><span class="token string">&quot;\\p{Alnum}+&quot;</span><span class="token punctuation">)</span>
<span class="token keyword">public</span> <span class="token class-name">String</span> aa <span class="token operator">=</span> <span class="token string">&quot;12324&quot;</span><span class="token punctuation">;</span>
</code></pre>
<h4 id="nestcheck">@NestCheck</h4>
<p>&#x6CA1;&#x6709;&#x5C5E;&#x6027;,&#x5F53;&#x88AB;&#x68C0;&#x67E5;&#x5BF9;&#x8C61;&#x7684;&#x4E00;&#x4E2A;&#x5C5E;&#x6027;&#x662F;&#x53E6;&#x5916;&#x4E00;&#x4E2A;&#x5BF9;&#x8C61;,&#x9700;&#x8981;&#x4F7F;&#x7528;@NestCheck&#x8FDB;&#x884C;&#x6807;&#x8BC6;,&#x5426;&#x5219;&#x4E0D;&#x4F1A;&#x68C0;&#x67E5;</p>
<p>@NestCheck&#x6CE8;&#x89E3;&#x7684;&#x4F7F;&#x7528;&#x793A;&#x4F8B;</p>
<pre class="language-"><code class="lang-java"><span class="token comment">//&#x4EC5;&#x4EC5;&#x7528;&#x6765;&#x544A;&#x77E5;&#x9A8C;&#x8BC1;&#x5668;,&#x8FD9;&#x4E2A;&#x6CE8;&#x89E3;&#x9700;&#x8981;&#x88AB;&#x9012;&#x5F52;&#x9A8C;&#x8BC1;</span>
<span class="token annotation punctuation">@NestCheck</span>
<span class="token keyword">public</span> <span class="token class-name">MaxModel</span> max <span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name">MaxModel</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>

<span class="token annotation punctuation">@NestCheck</span>
<span class="token keyword">public</span> <span class="token class-name">MinModel</span> min<span class="token operator">=</span> <span class="token keyword">new</span> <span class="token class-name">MinModel</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
</code></pre>
<h4 id="custom">@Custom</h4>
<p>&#x81EA;&#x5B9A;&#x4E49;&#x68C0;&#x67E5;&#x6CE8;&#x89E3;,&#x7528;&#x4E8E;&#x9A8C;&#x8BC1;&#x5668;&#x7684;&#x6269;&#x5C55;,&#x5339;&#x914D;spring&#x4E2D;&#x7684;&#x81EA;&#x5B9A;&#x4E49;&#x9A8C;&#x8BC1;&#x5668;</p>
<table>
<thead>
<tr>
<th>&#x5C5E;&#x6027;&#x540D;</th>
<th>&#x63CF;&#x8FF0;</th>
</tr>
</thead>
<tbody>
<tr>
<td>validType</td>
<td>&#x6700;&#x5927;&#x503C;&#x5224;&#x65AD;&#x7684;&#x4F9D;&#x636E;&#x503C;,&#x4F1A;&#x4F7F;&#x7528;springEL&#x8FDB;&#x884C;&#x6267;&#x884C;</td>
</tr>
<tr>
<td>message</td>
<td>&#x5982;&#x679C;&#x5224;&#x65AD;&#x9519;&#x8BEF;,&#x5C55;&#x793A;&#x7684;&#x6D88;&#x606F;</td>
</tr>
<tr>
<td>messageProperty</td>
<td>&#x4F7F;&#x7528;&#x56FD;&#x9645;&#x5316;&#x914D;&#x7F6E;&#x7684;property</td>
</tr>
</tbody>
</table>
<p>@Custom&#x4F7F;&#x7528;&#x793A;&#x4F8B;</p>
<pre class="language-"><code class="lang-java"><span class="token comment">//&#x8FD9;&#x4E2A;&#x5B57;&#x6BB5;&#x4F1A;&#x8C03;&#x7528;&#x81EA;&#x5B9A;&#x4E49;&#x9A8C;&#x8BC1;&#x5668;,&#x81EA;&#x5B9A;&#x4E49;&#x9A8C;&#x8BC1;&#x5668;&#x9700;&#x8981;&#x518D;spring&#x914D;&#x7F6E;&#x4E2D;,&#x914D;&#x7F6E;customHandler</span>
<span class="token annotation punctuation">@Custom</span><span class="token punctuation">(</span>validType<span class="token operator">=</span><span class="token string">&quot;DB_CHECK&quot;</span><span class="token punctuation">)</span>
<span class="token keyword">public</span> <span class="token class-name">String</span> name<span class="token punctuation">;</span>
</code></pre>
<h3 id="&#x683C;&#x5F0F;&#x5316;&#x6D88;&#x606F;">&#x683C;&#x5F0F;&#x5316;&#x6D88;&#x606F;</h3>
<p>&#x914D;&#x7F6E;&#x7684;message&#x548C;messageProperty&#x4E0D;&#x662F;&#x4E00;&#x4E2A;&#x9759;&#x6001;&#x5185;&#x5BB9;,validation&#x4F1A;&#x8FD4;&#x56DE;&#x7279;&#x5B9A;&#x7684;&#x6570;&#x636E;&#x8FDB;&#x884C;&#x683C;&#x5F0F;&#x5316;.&#x5728;message&#x4E2D;,&#x4E00;&#x5171;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x5982;&#x4E0B;&#x53D8;&#x91CF;</p>
<table>
<thead>
<tr>
<th>&#x53D8;&#x91CF;&#x540D;</th>
<th>&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td>value</td>
<td>&#x6CE8;&#x89E3;&#x914D;&#x7F6E;&#x7684;value&#x5185;&#x5BB9;</td>
</tr>
<tr>
<td>fieldName</td>
<td>&#x6CE8;&#x89E3;&#x6240;&#x5728;&#x7684;field&#x7684;&#x540D;&#x79F0;</td>
</tr>
<tr>
<td>fieldValue</td>
<td>&#x6CE8;&#x89E3;&#x6240;&#x5728;field&#x7684;&#x503C;</td>
</tr>
<tr>
<td>referValue</td>
<td>&#x6CE8;&#x89E3;value&#x5728;&#x6267;&#x884C;springEL&#x4EE5;&#x540E;&#x7684;&#x8FD4;&#x56DE;</td>
</tr>
</tbody>
</table>
<p>&#x53D8;&#x91CF;&#x66FF;&#x6362;&#x793A;&#x4F8B;</p>
<pre class="language-"><code class="lang-java"><span class="token annotation punctuation">@Min</span><span class="token punctuation">(</span>value <span class="token operator">=</span> <span class="token string">&quot;3&quot;</span> <span class="token punctuation">,</span>message<span class="token operator">=</span><span class="token string">&quot;${fieldName}&#x7684;&#x957F;&#x5EA6;&#x4E0D;&#x80FD;&#x8D85;&#x8FC7;${value}&quot;</span><span class="token punctuation">)</span>
<span class="token keyword">public</span> <span class="token class-name">String</span> aaa <span class="token operator">=</span> <span class="token string">&quot;aaaaa&quot;</span><span class="token punctuation">;</span>
</code></pre>
<p>&#x544A;&#x8B66;&#x7684;&#x6D88;&#x606F;&#x4E3A;<strong style="color:red">aaa&#x7684;&#x957F;&#x5EA6;&#x4E0D;&#x80FD;&#x8D85;&#x8FC7;3</strong></p>
<footer class="page-footer"><span class="copyright">Copyright &#xA9; senvon 2020 all right reserved&#xFF0C;powered by Gitbook</span><span class="footer-modification">Bilibili,&#x5934;&#x6761;&#x53F7;,&#x5FAE;&#x4FE1;&#x53F7;&#xFF1A;&#x8BF7;&#x641C;&#x7D22;  &#x968F;senvon&#x98DE;
2021-08-30 17:36:34
</span></footer>
                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="httpService-readme.html" class="navigation navigation-prev " aria-label="Previous page: qilu-http-service">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="../state/state-course.html" class="navigation navigation-next " aria-label="Next page: 交易一致的由来">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"qilu-validate","level":"1.3.7","depth":2,"next":{"title":"交易一致的由来","level":"1.4","depth":1,"path":"state/state-course.md","ref":"state/state-course.md","articles":[{"title":"qilu-state使用说明","level":"1.4.1","depth":2,"path":"state/state-settle.md","ref":"state/state-settle.md","articles":[]},{"title":"购买订单的处理示例","level":"1.4.2","depth":2,"path":"state/state-demo.md","ref":"state/state-demo.md","articles":[]}]},"previous":{"title":"qilu-http-service","level":"1.3.6","depth":2,"path":"base/httpService-readme.md","ref":"base/httpService-readme.md","articles":[]},"dir":"ltr"},"config":{"plugins":["search-plus","-lunr","-search","tbfed-pagefooter","simple-page-toc","insert-logo","back-to-top-button","toggle-chapters","code","lightbox","copy-code-button","search-pro","emphasize","splitter","mermaid-gb3","-sharing","sharing-plus","prism","-highlight","flexible-alerts","page-toc-button","baidu","pageview-count","bilibili","donate","livereload"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"tbfed-pagefooter":{"copyright":"Copyright &copy senvon 2020","modify_label":"Bilibili,头条号,微信号：请搜索  随senvon飞"},"prism":{},"emphasize":{},"livereload":{},"simple-page-toc":{"maxDepth":5,"skipFirstH1":true},"splitter":{},"search-pro":{},"bilibili":{},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"code":{"copyButtons":true},"donate":{"alipay":"images/toutiao.jpg","alipayText":"头条号","button":"联系方式","title":"联系方式","wechat":"images/weixin.PNG","wechatText":"公众号"},"fontsettings":{"theme":"white","family":"sans","size":2},"mermaid-gb3":{},"lightbox":{"jquery":true,"sameUuid":false},"page-toc-button":{"maxTocDepth":5,"minTocSize":2},"back-to-top-button":{},"pageview-count":{},"flexible-alerts":{"danger":{"className":"danger","icon":"fa fa-ban","label":"Attention"},"note":{"className":"info","icon":"fa fa-info-circle","label":"Note"},"style":"flat","tip":{"className":"tip","icon":"fa fa-lightbulb-o","label":"Tip"},"warning":{"className":"warning","icon":"fa fa-exclamation-triangle","label":"Warning"}},"copy-code-button":{},"baidu":{"token":"51550945f89f43511a44753249ab6675"},"sharing":{"qq":true,"all":["douban","qq","qzone","weibo"],"douban":false,"facebook":false,"weibo":true,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":false,"messenger":false,"line":false,"vk":false,"pocket":false,"google":false,"viber":false,"stumbleupon":false,"qzone":true,"linkedin":false},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"toggle-chapters":{},"insert-logo":{"style":"background: none; height: 170px; width: 200px","url":"images/logo3.jpg"},"search-plus":{}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"启路框架-使用手册","language":"zh-hans","backplugin":["lightbox"],"gitbook":"*","description":"启路框架-使用手册"},"file":{"path":"base/validateReadme.md","mtime":"2021-08-30T09:36:34.197Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-10-19T02:57:27.717Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search-plus/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-plus/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-insert-logo/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-back-to-top-button/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-toggle-chapters/toggle.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-code/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lightbox/js/lightbox.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-copy-code-button/toggle.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-mermaid-gb3/book/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing-plus/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-flexible-alerts/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-page-toc-button/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-baidu/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-pageview-count/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-donate/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    <script src="../gitbook/gitbook-plugin-mermaid-gb3/mermaid/mermaid.min.js"></script>

    </body>
</html>

